class ModifyCommunity < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    add_column :communities, :county_id, :integer
    add_index(:communities, :county_id)
    add_foreign_key(:communities, :county_id, :counties)
  end

  def self.down
    remove_column :communities, :county_id, :integer
    remove_foreign_key(:communities, :county_id)
    remove_index(:communities, :county_id)
  end
end
